package com.coolwen.dao;

import com.coolwen.entity.Member;

import java.util.List;

public interface MemberMapper {
    int deleteByPrimaryKey(Integer memberId);

    int insert(Member record);

    int insertSelective(Member record);

    Member selectByPrimaryKey(Integer memberId);

    int updateByPrimaryKeySelective(Member record);

    int updateByPrimaryKey(Member record);

    /**
     * 通过teamId获取球员信息
     * @param TeamId
     * @return
     */

    List<Member> selectByTeamId(Integer TeamId);

    /**
     * 通过userId获取数据
     * @param integer
     * @return
     */
    Member selectByUserId(Integer integer);

    /**
     * 添加新的球员
     * @param integer
     * @return
     */
    int insertTeamId(Integer integer);

    /**
     * 更新球员信息
     * @param integer
     * @return
     */
    int updateTeamIdByTeamId(Integer integer);
}